.main {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #f5f5f7;
}

.title {
  font-size: 3rem;
  font-weight: 600;
  text-align: center;
  color: #1d1d1f;
  margin-bottom: 3rem;
}

.uploadContainer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.uploadSection {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.hiddenInput {
  display: none;
}

.uploadArea {
  border: 2px dashed #86868b;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uploadArea:hover {
  border-color: #0071e3;
  background-color: rgba(0, 113, 227, 0.05);
}

.uploadArea.hasImage {
  border-style: solid;
}

.dropzone {
  color: #86868b;
  font-size: 1.1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.previewInBox {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.uploadButtonContainer {
  margin-top: 3rem;
  text-align: center;
}

.uploadButton {
  background-color: #0071e3;
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 980px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
}

.uploadButton:hover {
  background-color: #0077ED;
  transform: scale(1.02);
}

.uploadButton:disabled {
  background-color: #999;
  cursor: not-allowed;
  transform: none;
}

.resultSection {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d2d2d7;
}

.resultSection h4 {
  color: #1d1d1f;
  margin-bottom: 0.5rem;
}

.urlInput {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #1d1d1f;
  background-color: #f5f5f7;
}

@media (max-width: 768px) {
  .uploadContainer {
    grid-template-columns: 1fr;
  }
}

.errorMessage {
  background-color: #ff3b30;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem auto;
  max-width: 600px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resultContainer {
  margin-top: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.resultImage {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
} 